package com.tianji.promotion.domain.query;

import com.baomidou.mybatisplus.annotation.TableField;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.promotion.enums.CouponStatus;
import com.tianji.promotion.enums.DiscountType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "优惠券查询参数")
@Accessors(chain = true)
public class CouponQuery extends PageQuery {

    @ApiModelProperty("优惠券折扣类型：1：每满减，2：折扣，3：无门槛，4：满减")
    private DiscountType type;

    @ApiModelProperty("优惠券状态，1：待发放，2：未开始，3：发放中, 4：发放结束, 5：暂停")
    private CouponStatus status;

    @ApiModelProperty("优惠券名称")
    @TableField("`name`")
    private String name;
}